package cn.wiseda.finance.utils;

import java.util.UUID;

public abstract class GenerateUID {
	public static String generate() {
		UUID uuid = UUID.randomUUID();
		String s = uuid.toString();
		return s.substring(0, 8) + s.substring(9, 13) + s.substring(14, 18) + s.substring(19, 23)
				+ s.substring(24);
	}

	public static void main(String[] args) {
		for (int i = 0; i < 10; i++) {
			System.out.println(generate());
		}
	}
}
